package com.xsp.eduservice.controller;

import com.xsp.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eduservice/user")
public class EduLoginController {

    //登录时会调用的接口
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    //登录时会调用的接口
    @GetMapping("info")
    public R info()
    {
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://www.ghostoact.com/static/arts/img/splash/a9cum76rnyluly4uz7kszu6q8ljvcjkm.jpg");
    }
}
